package com.lyandwc.lw_bbs.security.entity;

import com.lyandwc.lw_bbs.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Collection;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserAuthDetails extends User implements UserDetails, Serializable {
    private Collection<GrantedAuthority> authorities;
    private boolean isAccountNonExpired = false;
    private boolean isAccountNonLocked = false;
    private boolean isCredentialsNonExpired = false;
    private boolean isEnabled = true;
}
